module.exports = {
  title: "Salmos' blog",
  description: 'Recording ideas',
  head: [
    ['link', { rel: 'icon', href: '/doghead.jpg' }]
  ],
  host: "127.0.0.1",
  port: "8080",
  base: '/', //默认路径
  plugins: [
    '@vuepress/back-to-top',
  ],
  themeConfig: {// 主题设置
    logo: '/doghead.jpg',// 注意图片放在 public 文件夹下
    lastUpdated: 'Last Updated', // string | boolean
    displayAllHeaders: true, // 默认值：false
    nav: [
      {text: '首页', link: '/'},
      {
        text: '算法',
        items: [
          {text: "Control Algorithm", link: "/algorithm/control/"},
          {text: "算法B", link: "/algorithm/B/"},
        ]
      },
      {
        text: '平台与软件',
        items: [
          {
            text: "嵌入式开发板",
            items: [
              {text: "Jetson Nano", link: "/platform/nano/"},
              {text: "STM32", link: "/platform/stm32/"},
            ]
          },
          {
            text: "操作系统与软件平台",
            items: [
              {text: "Linux", link: "/platform/linux/"},
              {text: "Windows", link: "/platform/windows/"},
              {text: "ROS1", link: "/platform/ros1/"},
              {text: "ROS2", link: "/platform/ros2/"},
            ]
          },
          {
            text: "仿真平台",
            link: '/platform/simulation/',
            items: [
              {text: "physics", link: "/platform/simulation/physics/"},
              {text: "gazebo", link: "/platform/simulation/gazebo/"},
              {text: "unity", link: "/platform/simulation/unity/"},
            ]
          },
        ]
      },
      {
        text: 'Sensors',
        items: [
          {text: "IMU", link: "/sensors/imu/"},
          {text: "GPS", link: "/sensors/gps/"},
        ]
      },
      {
        text: 'GUI',
        items: [
          {
            text: "Web",
            items: [
              {text: "VuePress", link: "/gui/web/vuepress/"},
              {text: "Layui", link: "/gui/web/layui/"},
            ]
          }
        ]
      },
      {
        text: '后端',
        items: [
          {
            text: "webapp",
            items: [
              {text: "tornado", link: "/backend/webapp/tornado/"},
            ]
          }
        ]
      },
      {
        text: 'CS',
        items: [
          {
            text: "language",
            items: [
              {text: "python", link: "/cs/language/python/"},
              {text: "c", link: "/cs/language/c/"},
              {text: "c++", link: "/cs/language/c++/"},
              {text: "javascript", link: "/cs/language/javascript/"},
            ]
          },
          {
            text: "network",
            items: [
              {text: "base", link: "/cs/network/base/"},
            ]
          },
          {
            text: "os",
            items: [
              {text: "base", link: "/cs/os/base/"},
            ]
          },
        ]
      },
      {
        text: '工具',
        items: [
          {text: "git", link: "/tools/git/"},
          {text: "editor", link: "/tools/editor/"},
        ],
      },
      {
        text: 'Pieces',
        items: [
          {text: "Questions", link: "/pieces/questions/"},
          {text: "Thinking", link: "/pieces/thinking/"},
          {text: "Learning", link: "/pieces/learning/"},
          {text: "Reading", link: "/pieces/reading/"},
          {text: "Writing", link: "/pieces/writing/"},
        ],
      },
    ],
    sidebar: {
      /* 算法 */
      '/algorithm/control/': [
        '',
        '01_stanley',
      ],

      /* 平台 */
      '/platform/stm32/': [
        '',
        '01_knowledge.md',
        '02_issues.md',
      ],
      '/platform/linux/': [
        '',
        '01_install',
        '02_config',
        '03_operations',
        '04_issues',
      ],
      '/platform/windows/': [
        '',
        '01_operations',
        '02_issues',
      ],
      '/platform/ros1/': [
        '',
        '01_theory',
        '02_tutorials',
        '03_issues',
      ],
      '/platform/simulation/physics/': [
        '',
      ],
      '/platform/simulation/gazebo/': [
        '',
      ],
      '/platform/simulation/unity/': [
        '',
        '01_tutorials',
        '02_issues',
      ],
      
      /* 传感器 */
      '/sensors/imu/': [
        '',
      ],

      /* 图形界面 */
      '/gui/web/vuepress/': [
        '',
        '01_tutorials',
        '02_issues',
      ],

      /* 后端 */
      '/backend/webapp/tornado/': [
        '',
        '01_tutorials',
        '02_issues',
      ],

      /* 编程 */
      '/cs/language/python/': [
        '',
        '01_python.md',
        '02_issues.md',
        '03_numpy.md',
      ],
      '/cs/language/c/': [
        '',
        '01_tutorials',
        '02_interprocess_communications',
        '03_issues',
      ],

      /* 工具 */
      '/tools/git/': [
        '',
      ],
      '/tools/editor/': [
        '',
        '01_vscode.md'
      ],

      /* 零碎 */
      '/pieces/questions/': [
        '',
        '01_selfdrive',
        '02_miscellaneous',
      ],

      '/pieces/thinking/': [
        '',
        '01_dailywork',
        '02_management'
      ],

      '/pieces/learning/': [
        '',
        '01_route_map',
      ],
      
      '/pieces/reading/': [
        '',
        '01_2022',
      ],

      '/pieces/writing/': [
        '',
        '01_R&D',
      ],
      
    }
  }
}